#include "PersonalSpeachTimerOverDlg.h"
#include "ui_PersonalSpeachTimerOverDlg.h"

PersonalSpeachTimerOverDlg::PersonalSpeachTimerOverDlg(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::PersonalSpeachTimerOverDlg)
{
    ui->setupUi(this);
    setWindowFlags(Qt::WindowStaysOnTopHint);
    setWindowOpacity(0.9);

    connect(ui->pushButtonStartTalking, SIGNAL(clicked()), this, SLOT(OnStartTalking()));
    connect(ui->pushButtonFinishSpeach, SIGNAL(clicked()), this, SLOT(OnFinishSpeach()));
 }

PersonalSpeachTimerOverDlg::~PersonalSpeachTimerOverDlg()
{
    delete ui;
}
//------------------------------------------------
void PersonalSpeachTimerOverDlg::OnFinishSpeach()
{
    this->hide();
    emit sigFinishSpeach();
}
//------------------------------------------------
void PersonalSpeachTimerOverDlg::OnStartTalking()
{
    this->hide();
    emit sigStartTalking();
}
//------------------------------------------------
void PersonalSpeachTimerOverDlg::on_pushButtonPause_clicked()
{
    this->hide();
    emit sigPause();
}
//------------------------------------------------
void PersonalSpeachTimerOverDlg::on_pushButtonContinue_clicked()
{
    this->hide();
}
